package com.mySchool.mapper;

import com.mySchool.entity.PO.*;
import org.apache.ibatis.annotations.*;

import java.util.*;

/**
    * @author : Hinton
    * @date : 2024/9/23 上午11:24
    */
@Mapper
public interface UniversityMapper {
    List<UniversityPO>  findById(Long id);

    List<UniversityPO> findByUnName(String name);

    List<UniversityPO> findDetailUniversity(String name);


    @Options(useGeneratedKeys = true, keyProperty = "unId")
    int addUniversity(UniversityPO un);


    void deleteUniversityById(Long id);
}
